﻿#pragma once

// 常量
class Const {
    // 关卡
    public: static LPCTSTR LEVEL_FILE_PATH;                                             // 文件路径
    public: static const int LEVEL_COUNT = 15;                                          // 总数

    // 图片
    public: static LPCTSTR IMAGE_FILE_PATH;                                             // 文件路径

    // 定时器
    public: static const int TIMER_INIT = 500;                                          // 间隔

    // 格
    public: static const int GRID_SIZE = 30;                                            // 尺寸

    // 游戏区域
    public: static const int GAME_BOARD_GRID_COUNT_H = 12;                              // 横向格数
    public: static const int GAME_BOARD_GRID_COUNT_V = 12;                              // 纵向格数
    public: static const int GAME_BOARD_WIDTH = GRID_SIZE * GAME_BOARD_GRID_COUNT_H;    // 宽度
    public: static const int GAME_BOARD_HEIGHT = GRID_SIZE * GAME_BOARD_GRID_COUNT_V;   // 高度
    public: static const COLORREF GAME_BOARD_COLOR = RGB(0, 128, 0);                    // 背景色

    // 状态栏
    public: static const int STATUS_BAR_PART_COUNT = 2;                                 // 格数

    // 事件
    public: static const UINT UM_MAN_MOVED = WM_USER + 1;                               // 小人移动事件
    public: static const UINT UM_GOTO_LEVEL = WM_USER + 2;                              // 进入关卡事件
    public: static const UINT UM_GAME_OVER = WM_USER + 3;                               // 游戏结束事件
};
